#include "head.h"
/*
void send_log_to_server(const char *log_message)
{
    int socket_log=socket(AF_INET,SOCK_STREAM,0);
    char  ip[100] = { 0 };
    char port[100] = { 0 };

    //从配置文件中获取ip和port
    getparameter("ip", ip);
    getparameter("port", port);
    
    struct sockaddr_in server_addr;
    server_addr.sin_family=AF_INET;
    server_addr.sin_port=inet_addr(ip);
    server_addr.sin_addr.s_addr=htons(atoi(port));

    int connect_ret=connect(socket_log,(struct sockaddr*)&server_addr,sizeof(server_addr));
    

    send(socket_log,log_message,strlen(log_message),MSG_NOSIGNAL);
    close(socket_log);
}
*/

